<?php $orders = $form->getObject() ?>
<h1><?php echo $orders->isNew() ? __("New Orders") : __("Edit Orders")?></h1>

<form action="<?php echo url_for('orders/update'.(!$orders->isNew() ? '?orders_id='.$orders->getOrdersId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('orders/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$orders->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'orders/delete?orders_id='.$orders->getOrdersId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['customers_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_id']->renderError() ?>
          <?php echo $form['customers_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_name']->renderError() ?>
          <?php echo $form['customers_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_company']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_company']->renderError() ?>
          <?php echo $form['customers_company'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_street_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_street_address']->renderError() ?>
          <?php echo $form['customers_street_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_suburb']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_suburb']->renderError() ?>
          <?php echo $form['customers_suburb'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_city']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_city']->renderError() ?>
          <?php echo $form['customers_city'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_postcode']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_postcode']->renderError() ?>
          <?php echo $form['customers_postcode'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_state']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_state']->renderError() ?>
          <?php echo $form['customers_state'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_country']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_country']->renderError() ?>
          <?php echo $form['customers_country'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_telephone']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_telephone']->renderError() ?>
          <?php echo $form['customers_telephone'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_email_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_email_address']->renderError() ?>
          <?php echo $form['customers_email_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['customers_address_format_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['customers_address_format_id']->renderError() ?>
          <?php echo $form['customers_address_format_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_name']->renderError() ?>
          <?php echo $form['delivery_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_company']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_company']->renderError() ?>
          <?php echo $form['delivery_company'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_street_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_street_address']->renderError() ?>
          <?php echo $form['delivery_street_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_suburb']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_suburb']->renderError() ?>
          <?php echo $form['delivery_suburb'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_city']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_city']->renderError() ?>
          <?php echo $form['delivery_city'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_postcode']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_postcode']->renderError() ?>
          <?php echo $form['delivery_postcode'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_state']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_state']->renderError() ?>
          <?php echo $form['delivery_state'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_country']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_country']->renderError() ?>
          <?php echo $form['delivery_country'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['delivery_address_format_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['delivery_address_format_id']->renderError() ?>
          <?php echo $form['delivery_address_format_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_name']->renderError() ?>
          <?php echo $form['billing_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_company']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_company']->renderError() ?>
          <?php echo $form['billing_company'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_street_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_street_address']->renderError() ?>
          <?php echo $form['billing_street_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_suburb']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_suburb']->renderError() ?>
          <?php echo $form['billing_suburb'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_city']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_city']->renderError() ?>
          <?php echo $form['billing_city'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_postcode']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_postcode']->renderError() ?>
          <?php echo $form['billing_postcode'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_state']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_state']->renderError() ?>
          <?php echo $form['billing_state'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_country']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_country']->renderError() ?>
          <?php echo $form['billing_country'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['billing_address_format_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['billing_address_format_id']->renderError() ?>
          <?php echo $form['billing_address_format_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['payment_method']->renderLabel() ?></th>
        <td>
          <?php echo $form['payment_method']->renderError() ?>
          <?php echo $form['payment_method'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cc_type']->renderLabel() ?></th>
        <td>
          <?php echo $form['cc_type']->renderError() ?>
          <?php echo $form['cc_type'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cc_owner']->renderLabel() ?></th>
        <td>
          <?php echo $form['cc_owner']->renderError() ?>
          <?php echo $form['cc_owner'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cc_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['cc_number']->renderError() ?>
          <?php echo $form['cc_number'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cc_expires']->renderLabel() ?></th>
        <td>
          <?php echo $form['cc_expires']->renderError() ?>
          <?php echo $form['cc_expires'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['last_modified']->renderLabel() ?></th>
        <td>
          <?php echo $form['last_modified']->renderError() ?>
          <?php echo $form['last_modified'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['date_purchased']->renderLabel() ?></th>
        <td>
          <?php echo $form['date_purchased']->renderError() ?>
          <?php echo $form['date_purchased'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['orders_status']->renderLabel() ?></th>
        <td>
          <?php echo $form['orders_status']->renderError() ?>
          <?php echo $form['orders_status'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['orders_date_finished']->renderLabel() ?></th>
        <td>
          <?php echo $form['orders_date_finished']->renderError() ?>
          <?php echo $form['orders_date_finished'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['currency']->renderLabel() ?></th>
        <td>
          <?php echo $form['currency']->renderError() ?>
          <?php echo $form['currency'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['currency_value']->renderLabel() ?></th>
        <td>
          <?php echo $form['currency_value']->renderError() ?>
          <?php echo $form['currency_value'] ?>

        <?php echo $form['orders_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
